package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoXmlMapper {

    List<UserInfo> queryUserList();

    List<UserInfo> queryUserList2();

    Integer insert(UserInfo userInfo);
    Integer insert2(UserInfo userInfo);

    Integer delete(int id);

    Integer update(@Param("password") String password, @Param("id")Integer id);

    List<UserInfo> queryUserByWhere(@Param("username") String username, @Param("age") Integer age);

    Integer update2(UserInfo userInfo);

    Integer batchDelete(List<Integer> ids);
}
